﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>

@model PessMvc.Models.ChangePasswordModel

@{
    ViewBag.Title = "修改密码";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div id="m-title">
    <h2>修改密码</h2>
    <div id="m-op">请用下面的表单修改密码。新密码的长度最小 @Membership.MinRequiredPasswordLength 个字符。 </div>
</div>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "密码修改不成功. 请消除错误后再试一次.")
    <div>
        <fieldset class="edit m-pw">
            <div class="m-sd-xx m-sd-title">
                <div class="title">
                    用户名：@Membership.GetUser().UserName
                </div>
                <div class="sidebd displayCoordinate">
                    <div class="editor-label">
                        @*@Html.LabelFor(m => m.OldPassword)*@旧密码：&#8195;&#8195;
                        @Html.PasswordFor(m => m.OldPassword)
                        @Html.ValidationMessageFor(m => m.OldPassword)
                    </div>

                    <div class="editor-label">
                        @*@Html.LabelFor(m => m.NewPassword)*@新密码：&#8195;&#8195;
                        @Html.PasswordFor(m => m.NewPassword)
                        @Html.ValidationMessageFor(m => m.NewPassword)
                    </div>

                    <div class="editor-label">
                        @*@Html.LabelFor(m => m.ConfirmPassword)*@重复新密码：
                        @Html.PasswordFor(m => m.ConfirmPassword)
                        @Html.ValidationMessageFor(m => m.ConfirmPassword)
                    </div>

                    <div class="editor-btn" style="text-indent:6.4em;">
                        <input type="submit" value="修改密码" class="u-btn u-btn-save3" />
                    </div>
                </div>
            </div>

        </fieldset>
    </div>
}
